package com.wish.system.api;

import com.wish.common.core.constant.ServiceNameConstants;
import com.wish.system.api.factory.RemoteMessageFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 文件服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "RemoteMessageService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteMessageFallbackFactory.class)
public interface RemoteMessageService
{
    /**
     * 短信验证码发送
     *
     * @param phoneNumber  code
     * @return 结果
     */

    @RequestMapping(value = "/message/send")
    public boolean send(@RequestParam("phoneNumber") String phoneNumber,@RequestParam("templateId")String templateId);

}
